package com.ayuer.chapter03;

public class SinglyLinkListSentinel {
    static class Node {
        private ReverseLinkedListDemo.Node next;
        private int data;

        public Node(ReverseLinkedListDemo.Node next, Integer data) {
            this.next = next;
            this.data = data;
        }

        public ReverseLinkedListDemo.Node getNext() {
            return next;
        }

        public void setNext(ReverseLinkedListDemo.Node next) {
            this.next = next;
        }

        public int getData() {
            return data;
        }

        public void setData(int data) {
            this.data = data;
        }
    }

}
